package com.ecotope.quartz.module.service.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ecotope.quartz.module.dao.TownAtmosphericStationMapper;
import com.ecotope.quartz.module.entity.TownAtmosphericStation;
import com.ecotope.quartz.module.service.TownAtmosphericStationService;
import com.ecotope.quartz.module.util.HttpURLConnectionUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * @author JK
 */
@Service
public class TownAtmosphericStationImpl implements TownAtmosphericStationService {

    private static final Logger log = LoggerFactory.getLogger(TownAtmosphericStationImpl.class);

    @Autowired
    private TownAtmosphericStationMapper townAtmosphericStationMapper;

    @Override
    public List<TownAtmosphericStation> selectList(TownAtmosphericStation townAtmosphericStation) {
        return townAtmosphericStationMapper.selectList(townAtmosphericStation);
    }

    @Override
    public int insert(TownAtmosphericStation townAtmosphericStation) {
        return townAtmosphericStationMapper.insert(townAtmosphericStation);
    }

    @Override
    public String selectZDBH(String zdmc) {
        return townAtmosphericStationMapper.selectZDBH(zdmc);
    }
}
